package com.fancy.common;

import java.io.Serializable;

/**
 * 权限信息
 * 
 * @author xinfeng.hu 2013-3-13下午12:15:34
 * @version 1.0.0
 * @category 杭州广桥网络技术有限公司(商业先知)
 */
public class AuthToken implements Serializable {

	/**
	 * 序列化版本号
	 */
	private static final long serialVersionUID = 5315397165408601908L;

	/**
	 * 用户令牌
	 */
	private String token;

	/**
	 * 用户ID
	 */
	private Long userId;

	/**
	 * 客户端MAC地址
	 */
	private String mac;

	/**
	 * 设备Token
	 */
	private String deviceToken;

	/**
	 * 设备名称
	 */
	private String deviceName;

	public AuthToken() {
	}

	public AuthToken(final Long userId) {
		this.userId = userId;
	}

	public AuthToken(final Long userId, String deviceToken) {
		this.userId = userId;
		this.deviceToken = deviceToken;
	}

	public AuthToken(final Long userId, final String token, final String mac, final String deviceToken, final String deviceName) {
		this.userId = userId;
		this.token = token;
		this.mac = mac;
		this.deviceToken = deviceToken;
		this.deviceName = deviceName;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getMac() {
		return mac;
	}

	public void setMac(String mac) {
		this.mac = mac;
	}

	public String getDeviceToken() {
		return deviceToken;
	}

	public void setDeviceToken(String deviceToken) {
		this.deviceToken = deviceToken;
	}

	public String getDeviceName() {
		return deviceName;
	}

	public void setDeviceName(String deviceName) {
		this.deviceName = deviceName;
	}

}
